package com.wizinno.android.urineflow.activity;

import android.os.Bundle;
import android.widget.TextView;
import com.wizinno.android.urineflow.R;
import com.wizinno.android.urineflow.application.ExitApplication;
import com.wizinno.android.urineflow.constant.MessageInfo;
import com.wizinno.android.urineflow.data.ErrorCodeEnum;

public class ErrorActivity extends BaseActivity {

    TextView tv_error_desc;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        ExitApplication.getInstance().addActivity(this);
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_error);
        tv_error_desc = findViewById(R.id.tv_error_desc);

        Bundle extras = getIntent().getExtras();
        int errorCode = (int) extras.get(MessageInfo.KEY_ERROR_CODE);
        tv_error_desc.setText(ErrorCodeEnum.getDesc(errorCode));
    }

}